package org.uw.src.logic;

import java.util.List;
import java.util.ArrayList;

public class World {
	public player player;
	public List<entity> objects = new ArrayList<entity>();
	
	public int addObject(entity o) {
		objects.add(o);
		o.ID = objects.indexOf(o);
		return objects.indexOf(o);
		
	}
	
	public void removeObject(int i) {
		objects.remove(i);
	}
	
	public void removeObject(entity o) {
		objects.remove(o);
	}
	
	public entity getObjectById(int i) {
		return objects.get(i);
	}
	
	
}
